<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport"
			content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0,minimal-ui" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />
		<meta name="apple-mobile-web-app-title" content="天天来收租">
		<meta name="format-detection" content="telphone=no, email=no" />
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="HandheldFriendly" content="true">
		<meta name="MobileOptimized" content="320">
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<meta name="screen-orientation" content="portrait">
		<meta name="browsermode" content="application">
		<meta name="full-screen" content="yes">
		<meta name="x5-orientation" content="portrait">
		<meta name="x5-fullscreen" content="true">
		<meta name="x5-page-mode" content="app">
		<link rel="stylesheet" href="../css/public.css">
		<link rel="stylesheet" href="../css/invite.css">
		<title>邀请好友</title>
	</head>
	<body>
		<div class="zone">
			<div class="main">
				<div class="invite_box">
					<img src="http://img.qxgs.cc/tiantianlaishouzu/img/public/invite.png" />
					<div class="posa">
						<div class="padd5">
							<div class="qr-code" id="qr-code"></div>
							<!-- <img class="diimg" src="http://img.qxgs.cc/tiantianlaishouzu/img/public/di.png" /> -->
						</div>
						<div class="mar5">
							<p>最好用的搬砖手游</p>
							<p>区区爆满 终极全爆</p>
							<p class="invitecde">邀请码：<span id="invite-code">123456</span></p>
						</div>
					</div>
				</div>
			</div>
		</div>

		<script src="../js/public.js" type="text/javascript" charset="utf-8"></script>
		<script src="../js/nav-bar.js" type="text/javascript" charset="utf-8"></script>
		<script src="../lib/qr-code.js" type="text/javascript" charset="utf-8"></script>

		<script>
			let ele = {};
			ele.qrCode = $('#qr-code');
			ele.inviteCode = $('#invite-code');
			let inviteCode = getCookie('invite_code');
			ele.inviteCode.innerText = inviteCode;
			let qr = new QRCode(ele.qrCode, {
				text: SHORT_URL + inviteCode,
				width: 96,
				height: 96,
				correctLevel: QRCode.CorrectLevel.L
			});
		</script>
	</body>
</html>
